<?php
/*
* @Descripttion: 配置
* @Author: jiosen <4631458@qq.com>
* @Date: 2024-06-12 11:03:44
*/
namespace app\controller;

use app\BaseController;
use app\service\Setting as ServiceSetting;

class Setting extends BaseController
{
    public function config()
    {
        return $this->success('success',ServiceSetting::getConfig());
    }

    public function setConfig()
    {
        $res = ServiceSetting::setConfig($this->request->param());

        if($res){
            return $this->success('保存成功',$res);
        }

        return $this->error('保存失败');
    }
}
